package com.xyz.ai.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Tutorials {
    @TableId(type = IdType.AUTO)
    private Long id;

    private String title;

    private String instructor;


    private Integer durationMin;

    private String category;

    private LocalDateTime createdAt;
    protected void onCreate() {
        this.createdAt = LocalDateTime.now();
    }
}